<?php $url = new Zend_Controller_Action_Helper_Url();?>
<?php $this->nav = "<a href=\"".$url->simple('','')."\">首页</a> > <a href=\"".$url->simple('','student')."\">共同学习</a> > <a href=\"".$url->simple('','student')."\">学生学习</a> > 专题学习"?>

<div id="teacher-teacher-learning_title_publish">
</div>

<div id="content_border">
	<div class="w-listp">
	<div style="width:600px; margin:0 auto;" >
	<table width="594" cellpadding="0" cellspacing="0">
		<tr>
			<td height="30" valign="bottom" align="center">
				<h4><?=$this->Escape($this->content->title); ?></h4>
			</td>
		</tr>
		<tr>
			<td height="25" align="center">
				作者：<?=$this->content->author; ?>&nbsp;&nbsp;
				<? $date = new Zend_Date($this->content->updatetime, Zend_Date::TIMESTAMP); ?>
				发表时间：<?= $date->toString("Y-M-d"); ?>&nbsp;&nbsp;
				浏览次数：<?= $this->content->views; ?>
			</td>
		</tr>
		<tr><td height="10">&nbsp;</td></tr>
		<tr><td><?= stripslashes($this->content->content); ?></td></tr>
		<?php if ( $this->content->file &&  $this->content->filepath):?>
		<tr><td height="10">&nbsp;</td></tr>
		<tr><td>附件 Enclosure：<font color="#FF0000"><?= $this->content->file?></font>&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="<?= substr($this->content->filepath,1);?>">下载保存</a>
		</td></tr>
		<?php endif;?>
		<tr><td height="10">&nbsp;</td></tr>
		<tr>
			<td valign="middle" style="height: 28px;width: 100%;border-top-width: 1px;border-right-width: 0px;	border-bottom-width: 1px;	border-left-width: 0px;	border-top-style: solid;
					border-bottom-style: solid;	border-top-color: #000;	border-bottom-color: #000;">
				回复 Reply:
			</td>
		</tr>
		<tr>
			<td>
			<table width="100%" cellpadding="0" cellspacing="0">
			<?php $i = 1;?>
			<?php foreach ($this->replys as $reply): ?>
				<tr>
					<td height="90" valign="top"  style="border-bottom-width: 1px;border-bottom-style: solid;	border-bottom-color: #000;">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr><td width="100%" height="13" align="right">
								<?= $this->replys->getItemCountPerPage()*($this->replys->getCurrentPageNumber()-1) + $i?>&nbsp;楼&nbsp;&nbsp;&nbsp;&nbsp;
								Floor&nbsp;<?= $this->replys->getItemCountPerPage()*($this->replys->getCurrentPageNumber()-1) + $i?>
							</td></tr>
							<tr>
								<td><?= stripslashes(nl2br($reply->content)); ?>
								</td>
							</tr>								
						</table>
				    </td>
			    </tr>
			<?php $i++;?>
		    <?php endforeach ?>
		    	<tr><td>					    
			    	<?if ($this->replys instanceof Zend_Paginator): ?>
					    <?= $this->paginationControl($this->replys, 'sliding', 'student/_replyPaginator.phtml', array('contentId'=>$this->content->id))?>
					<?endif?>
		    	</td></tr>
		    </table>
			</td>
		</tr>
		<tr><td><?= $this->replyForm; ?></td></tr>
	</table>
	</div>
	</div>
</div>